package com.cskaoyan.javase.oop2._1extends._5protected._1two;

import com.cskaoyan.javase.oop2._1extends._5protected._0one.CurrentClazz;

/**
 * 不同包下的非CurrentClazz子类
 * 这里能够访问不同包下的非父类的CurrentClazz中的受保护成员吗?
 * 显然不行
 *
 * @since 16:33
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class AnotherPackageAnotherClazz {
    public static void main(String[] args) {
        CurrentClazz cc = new CurrentClazz();
        // 'num' has protected access in 'com.cskaoyan.javase.oop2._1extends._5protected._0one.CurrentClazz'
        // System.out.println(cc.num);
    }
}
